class CreateComprobantesPago < ActiveRecord::Migration
  def self.up
    create_table :comprobantes_pago do |t|
      t.column :fecha, :date
      t.column :nro_serie, :string
      t.column :tipo_comprobante_id, :integer
      t.column :ruc, :string
      t.column :proveedor, :string
      t.column :base, :decimal, :precision=>9, :scale => 2
      t.column :igv, :decimal, :precision=>9, :scale => 2
      t.column :otros, :decimal, :precision=>9, :scale => 2
      t.column :total, :decimal, :precision=>9, :scale => 2
      t.column :reserva_id, :integer
      t.column :glosa, :text      
    end
  end

  def self.down
    drop_table :comprobantes_pago
  end
end
